import Toast from './Toast'

const toast={}

toast.install = function (Vue) {
  const toastConstrutor =Vue.extend(Toast)
  const toastObj = new toastConstrutor()
  toastObj.$mount(document.createElement('div'))
  document.body.appendChild(toastObj.$el)
  Vue.prototype.$toast = toastObj;
}
export default toast